﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace DAO { 

	public enum DataProviderAction{
		Insert = 0,
		Edit = 1,
		Delete = 2,
		Active = 3
	}

	public  class DataContext : System.IDisposable{
		public DataContext() {
		}

		private String m_connecString=String.Empty;

		public DataContext(String connecString) {
			m_connecString = connecString;
		}


        public TblBangGiaDAO TblBangGias
        {
            get { return new TblBangGiaDAO(m_connecString); }
        }

		public TblBpbkDAO TblBpbks{
			get { return new TblBpbkDAO(m_connecString); }
		}

		public TblDonViDAO TblDonVis{
			get { return new TblDonViDAO(m_connecString); }
		}

		public TblKhachHangDAO TblKhachHangs{
			get { return new TblKhachHangDAO(m_connecString); }
		}

		public TblLoaiBpbkDAO TblLoaiBpbks{
			get { return new TblLoaiBpbkDAO(m_connecString); }
		}

		public TblNguoiDungDAO TblNguoiDungs{
			get { return new TblNguoiDungDAO(m_connecString); }
		}

		public TblNhomNguoiDungDAO TblNhomNguoiDungs{
			get { return new TblNhomNguoiDungDAO(m_connecString); }
		}

		public TblTrangThaiBillDAO TblTrangThaiBills{
			get { return new TblTrangThaiBillDAO(m_connecString); }
		}

		public TblTuyenPhatDAO TblTuyenPhats{
			get { return new TblTuyenPhatDAO(m_connecString); }
		}

        public void Dispose()
        {
            
        }
    }
}
